<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.carebuddy.petcare.controller.*"%>
<%@ page import="com.carebuddy.petcare.biz.*"%>
<%@ page import="com.db.vo.*"%>
<%@ page import="java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	Carebuddy carebuddy = new Carebuddy();
	PetcareController petcareController = carebuddy.getPetcareController();
	petcareController.listPetcare_ad(request);
	Vector<PetcareVO> list = (Vector)request.getAttribute("list");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<title>위탁신청목록</title>
</head>
<script>
	function situ (i){
		if(i.equals("0"))
			return "미신청";
		else if(i.equals("1"))
			return "진행중";
		else
			return "완료";
	}
</script>
<body class="bodystyle">
	<table width="700" align="center" style="text-align:center;">
		<tr>
			<td>No.</td>
			<td>아이디</td>
			<td>분류</td>
			<td>시작</td>
			<td>종료</td>
			<td>상태</td>
		</tr>
		<c:forEach var="data" items="${list}" varStatus="st">
		 <tr onclick="location.href='admin_work.jsp?apply_id=${data.apply_id}'" style="cursor:pointer">
			<td>${st.count}</td>
			<td>${data.login_name}</td>
			<td>${data.category}</td>
			<td>${data.date}</td>
			<td>${data.tdate}</td>
			<td>${data.situ}</td>
		 </tr>
		 </c:forEach>
	</table>
</body>
</html>